<div class="pagination" ng-if="page.items.length > 0">
	<label class="all-page">共  <span ng-bind="page.totalPage"></span> 页</label>
	<ul ng-if="page.totalPage<=9">
		<li ng-class="{disabled:page.pageNumber == 1}"><a href="javascript:;" url="{{page.url}}" param="1">首页</a></li>
		<li ng-class="{disabled:page.pageNumber == 1}"><a href="javascript:;" url="{{page.url}}" param="{{page.pageNumber-1}}"><<</a></li>
		
		<li ng-repeat="item in page.items"  ng-class="{activepage:page.pageNumber == item}" >
			<a href="javascript:;" url="{{page.url}}" param="{{item}}">{{item}}</a>
		</li>
		
		<li ng-class="{disabled:page.pageNumber == page.totalPage}"><a href="javascript:;" url="{{page.url}}" param="{{page.pageNumber+1}}">>></a></li>
		<li ng-class="{disabled:page.pageNumber == page.totalPage}"><a href="javascript:;" url="{{page.url}}" param="{{page.totalPage}}">末页</a></li>
	</ul>
	<ul ng-if="page.totalPage>9">
		<li ng-class="{disabled:page.pageNumber == 1}"><a href="javascript:;" url="{{page.url}}" param="1">首页</a></li>
		<li ng-class="{disabled:page.pageNumber == 1}"><a href="javascript:;" url="{{page.url}}" param="{{page.pageNumber-1}}"><<</a></li>
		
		<li ng-if="(item >= page.pageNumber - 4) && (item <= page.pageNumber + 4)" ng-repeat="item in page.items"  ng-class="{activepage:page.pageNumber == item}" >
			<a href="javascript:;" url="{{page.url}}" param="{{item}}">{{item}}</a>
		</li>
		
		<li ng-class="{disabled:page.pageNumber == page.totalPage}"><a href="javascript:;" url="{{page.url}}" param="{{page.pageNumber+1}}">>></a></li>
		<li ng-class="{disabled:page.pageNumber == page.totalPage}"><a href="javascript:;" url="{{page.url}}" param="{{page.totalPage}}">末页</a></li>
	</ul>
</div>